﻿using System.Windows;
using System.Windows.Media.Animation;
using GalaSoft.MvvmLight.Messaging;
using System;
using Medecine.Interface.Users;

namespace Medecine.Interface.Main
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainView : Window
	{
		/// <summary>
		/// Initializes a new instance of the MainWindow class.
		/// </summary>
		public MainView()
		{
			InitializeComponent();
			VisualStateManager.GoToElementState(contentGrid, LoginState.Name, false);
			ViewController.Instance.Initialize(this);
		}

		public void GoToLogin()
		{
			loginView.Reset();
			VisualStateManager.GoToElementState(contentGrid, LoginState.Name, true);
			userInfoExpander.IsExpanded = false;
		}

		public void GoToLogged()
		{
			VisualStateManager.GoToElementState(contentGrid, LoggedState.Name, true);
		}
	}
}